# Copyright (c) Meta Platforms, Inc. and affiliates.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

# Autogen with
# import json
# with open("paco_lvis_v1_train.json") as f:
#     PACO_LVIS_IMAGE_COUNT = json.load(f)["categories"]

# with open("paco_ego4d_v1_train.json") as f:
#     PACO_EGO4D_IMAGE_COUNT = json.load(f)["categories"]
# PACO_LVIS_IMAGE_COUNT_FINAL = []
# for x, y in zip(PACO_LVIS_IMAGE_COUNT, PACO_EGO4D_IMAGE_COUNT):
#     PACO_LVIS_IMAGE_COUNT_FINAL.append(
#         {
#             "id": x["id"],
#             "image_count": x["image_count"] + y["image_count"]
#         }
#     )

# with open("paco_lvis_ego4d_category_image_count.py", "wt") as f:
#     f.write(f"PACO_LVIS_EGO4D_CATEGORY_IMAGE_COUNT = {PACO_LVIS_IMAGE_COUNT_FINAL}")
# Then paste the contents of that file below

# fmt: off

PACO_LVIS_EGO4D_CATEGORY_IMAGE_COUNT = [{'id': 23, 'image_count': 1911}, {'id': 35, 'image_count': 2522}, {'id': 41, 'image_count': 411}, {'id': 61, 'image_count': 1718}, {'id': 88, 'image_count': 1864}, {'id': 90, 'image_count': 1891}, {'id': 94, 'image_count': 1952}, {'id': 112, 'image_count': 271}, {'id': 127, 'image_count': 2439}, {'id': 133, 'image_count': 3207}, {'id': 139, 'image_count': 2848}, {'id': 143, 'image_count': 2290}, {'id': 156, 'image_count': 197}, {'id': 160, 'image_count': 1430}, {'id': 184, 'image_count': 65}, {'id': 192, 'image_count': 625}, {'id': 207, 'image_count': 2171}, {'id': 220, 'image_count': 217}, {'id': 230, 'image_count': 1864}, {'id': 232, 'image_count': 2309}, {'id': 271, 'image_count': 1787}, {'id': 324, 'image_count': 262}, {'id': 344, 'image_count': 2037}, {'id': 378, 'image_count': 2018}, {'id': 396, 'image_count': 202}, {'id': 399, 'image_count': 60}, {'id': 409, 'image_count': 537}, {'id': 429, 'image_count': 588}, {'id': 498, 'image_count': 2088}, {'id': 521, 'image_count': 236}, {'id': 530, 'image_count': 232}, {'id': 544, 'image_count': 1874}, {'id': 556, 'image_count': 1865}, {'id': 591, 'image_count': 487}, {'id': 604, 'image_count': 211}, {'id': 615, 'image_count': 2356}, {'id': 621, 'image_count': 700}, {'id': 626, 'image_count': 1745}, {'id': 631, 'image_count': 2108}, {'id': 687, 'image_count': 1044}, {'id': 694, 'image_count': 1854}, {'id': 705, 'image_count': 1387}, {'id': 708, 'image_count': 863}, {'id': 713, 'image_count': 1800}, {'id': 719, 'image_count': 499}, {'id': 751, 'image_count': 540}, {'id': 781, 'image_count': 706}, {'id': 782, 'image_count': 353}, {'id': 804, 'image_count': 1885}, {'id': 811, 'image_count': 1500}, {'id': 818, 'image_count': 2549}, {'id': 821, 'image_count': 216}, {'id': 881, 'image_count': 1118}, {'id': 898, 'image_count': 1446}, {'id': 921, 'image_count': 721}, {'id': 923, 'image_count': 1127}, {'id': 926, 'image_count': 226}, {'id': 948, 'image_count': 1953}, {'id': 973, 'image_count': 103}, {'id': 979, 'image_count': 615}, {'id': 999, 'image_count': 284}, {'id': 1000, 'image_count': 1476}, {'id': 1018, 'image_count': 425}, {'id': 1042, 'image_count': 932}, {'id': 1050, 'image_count': 4927}, {'id': 1061, 'image_count': 283}, {'id': 1072, 'image_count': 2216}, {'id': 1077, 'image_count': 2028}, {'id': 1093, 'image_count': 545}, {'id': 1108, 'image_count': 1965}, {'id': 1117, 'image_count': 1314}, {'id': 1139, 'image_count': 1832}, {'id': 1156, 'image_count': 134}, {'id': 1161, 'image_count': 1891}, {'id': 1196, 'image_count': 105}, {'id': 2000, 'image_count': 89}, {'id': 2001, 'image_count': 617}, {'id': 2002, 'image_count': 803}, {'id': 2003, 'image_count': 879}, {'id': 2004, 'image_count': 526}, {'id': 2005, 'image_count': 2045}, {'id': 2006, 'image_count': 6}, {'id': 2007, 'image_count': 349}, {'id': 2008, 'image_count': 770}, {'id': 2009, 'image_count': 1286}, {'id': 2010, 'image_count': 1563}, {'id': 2011, 'image_count': 1241}, {'id': 2012, 'image_count': 1314}, {'id': 2013, 'image_count': 27}, {'id': 2014, 'image_count': 651}, {'id': 2015, 'image_count': 1268}, {'id': 2016, 'image_count': 495}, {'id': 2017, 'image_count': 50}, {'id': 2018, 'image_count': 6}, {'id': 2019, 'image_count': 106}, {'id': 2020, 'image_count': 352}, {'id': 2021, 'image_count': 101}, {'id': 2022, 'image_count': 229}, {'id': 2023, 'image_count': 765}, {'id': 2024, 'image_count': 354}, {'id': 2025, 'image_count': 121}, {'id': 2026, 'image_count': 69}, {'id': 2027, 'image_count': 231}, {'id': 2028, 'image_count': 153}, {'id': 2029, 'image_count': 394}, {'id': 2030, 'image_count': 73}, {'id': 2031, 'image_count': 90}, {'id': 2032, 'image_count': 137}, {'id': 2033, 'image_count': 210}, {'id': 2034, 'image_count': 235}, {'id': 2035, 'image_count': 962}, {'id': 2036, 'image_count': 1402}, {'id': 2037, 'image_count': 1685}, {'id': 2038, 'image_count': 174}, {'id': 2039, 'image_count': 1206}, {'id': 2040, 'image_count': 780}, {'id': 2041, 'image_count': 2203}, {'id': 2042, 'image_count': 365}, {'id': 2043, 'image_count': 11}, {'id': 2044, 'image_count': 127}, {'id': 2045, 'image_count': 973}, {'id': 2046, 'image_count': 1274}, {'id': 2047, 'image_count': 3010}, {'id': 2048, 'image_count': 184}, {'id': 2049, 'image_count': 2184}, {'id': 2050, 'image_count': 186}, {'id': 2051, 'image_count': 343}, {'id': 2052, 'image_count': 18}, {'id': 2053, 'image_count': 782}, {'id': 2054, 'image_count': 1827}, {'id': 2055, 'image_count': 719}, {'id': 2056, 'image_count': 1226}, {'id': 2057, 'image_count': 2071}, {'id': 2058, 'image_count': 567}, {'id': 2059, 'image_count': 62}, {'id': 2060, 'image_count': 577}, {'id': 2061, 'image_count': 1364}, {'id': 2062, 'image_count': 847}, {'id': 2063, 'image_count': 483}, {'id': 2064, 'image_count': 412}, {'id': 2065, 'image_count': 1740}, {'id': 2066, 'image_count': 209}, {'id': 2067, 'image_count': 2051}, {'id': 2068, 'image_count': 1794}, {'id': 2069, 'image_count': 1756}, {'id': 2070, 'image_count': 191}, {'id': 2071, 'image_count': 29}, {'id': 2072, 'image_count': 120}, {'id': 2073, 'image_count': 29}, {'id': 2074, 'image_count': 99}, {'id': 2075, 'image_count': 178}, {'id': 2076, 'image_count': 72}, {'id': 2077, 'image_count': 673}, {'id': 2078, 'image_count': 19}, {'id': 2079, 'image_count': 164}, {'id': 2080, 'image_count': 400}, {'id': 2081, 'image_count': 1870}, {'id': 2082, 'image_count': 25}, {'id': 2083, 'image_count': 926}, {'id': 2084, 'image_count': 152}, {'id': 2085, 'image_count': 1655}, {'id': 2086, 'image_count': 42}, {'id': 2087, 'image_count': 30}, {'id': 2088, 'image_count': 144}, {'id': 2089, 'image_count': 1319}, {'id': 2090, 'image_count': 108}, {'id': 2091, 'image_count': 84}, {'id': 2092, 'image_count': 129}, {'id': 2093, 'image_count': 120}, {'id': 2094, 'image_count': 537}, {'id': 2095, 'image_count': 231}, {'id': 2096, 'image_count': 473}, {'id': 2097, 'image_count': 1488}, {'id': 2098, 'image_count': 655}, {'id': 2099, 'image_count': 787}, {'id': 2100, 'image_count': 332}, {'id': 2101, 'image_count': 577}, {'id': 2102, 'image_count': 4}, {'id': 2103, 'image_count': 54}, {'id': 2104, 'image_count': 139}, {'id': 2105, 'image_count': 309}, {'id': 2106, 'image_count': 164}, {'id': 2107, 'image_count': 8}, {'id': 2108, 'image_count': 397}, {'id': 2109, 'image_count': 146}, {'id': 2110, 'image_count': 404}, {'id': 2111, 'image_count': 293}, {'id': 2112, 'image_count': 29}, {'id': 2113, 'image_count': 2539}, {'id': 2114, 'image_count': 13}, {'id': 2115, 'image_count': 208}, {'id': 2116, 'image_count': 1419}, {'id': 2117, 'image_count': 1157}, {'id': 2118, 'image_count': 301}, {'id': 2119, 'image_count': 5}, {'id': 2120, 'image_count': 200}, {'id': 2121, 'image_count': 318}, {'id': 2122, 'image_count': 756}, {'id': 2123, 'image_count': 218}, {'id': 2124, 'image_count': 9}, {'id': 2125, 'image_count': 88}, {'id': 2126, 'image_count': 2}, {'id': 2127, 'image_count': 70}, {'id': 2128, 'image_count': 2073}, {'id': 2129, 'image_count': 586}, {'id': 2130, 'image_count': 73}, {'id': 2131, 'image_count': 16}, {'id': 2132, 'image_count': 144}, {'id': 2133, 'image_count': 180}, {'id': 2134, 'image_count': 435}, {'id': 2135, 'image_count': 1073}, {'id': 2136, 'image_count': 55}, {'id': 2137, 'image_count': 267}, {'id': 2138, 'image_count': 1645}, {'id': 2139, 'image_count': 306}, {'id': 2140, 'image_count': 561}, {'id': 2141, 'image_count': 93}, {'id': 2142, 'image_count': 89}, {'id': 2143, 'image_count': 1272}, {'id': 2144, 'image_count': 183}, {'id': 2145, 'image_count': 146}, {'id': 2146, 'image_count': 345}, {'id': 2147, 'image_count': 19}, {'id': 2148, 'image_count': 1487}, {'id': 2149, 'image_count': 113}, {'id': 2150, 'image_count': 1031}, {'id': 2151, 'image_count': 193}, {'id': 2152, 'image_count': 283}, {'id': 2153, 'image_count': 34}, {'id': 2154, 'image_count': 37}, {'id': 2155, 'image_count': 237}, {'id': 2156, 'image_count': 1276}, {'id': 2157, 'image_count': 1148}, {'id': 2158, 'image_count': 67}, {'id': 2159, 'image_count': 229}, {'id': 2160, 'image_count': 871}, {'id': 2161, 'image_count': 147}, {'id': 2162, 'image_count': 1373}, {'id': 2163, 'image_count': 187}, {'id': 2164, 'image_count': 441}, {'id': 2165, 'image_count': 715}, {'id': 2166, 'image_count': 60}, {'id': 2167, 'image_count': 250}, {'id': 2168, 'image_count': 85}, {'id': 2169, 'image_count': 1495}, {'id': 2170, 'image_count': 337}, {'id': 2171, 'image_count': 181}, {'id': 2172, 'image_count': 140}, {'id': 2173, 'image_count': 221}, {'id': 2174, 'image_count': 1010}, {'id': 2175, 'image_count': 55}, {'id': 2176, 'image_count': 217}, {'id': 2177, 'image_count': 614}, {'id': 2178, 'image_count': 1685}, {'id': 2179, 'image_count': 94}, {'id': 2180, 'image_count': 200}, {'id': 2181, 'image_count': 489}, {'id': 2182, 'image_count': 762}, {'id': 2183, 'image_count': 96}, {'id': 2184, 'image_count': 36}, {'id': 2185, 'image_count': 663}, {'id': 2186, 'image_count': 4}, {'id': 2187, 'image_count': 628}, {'id': 2188, 'image_count': 190}, {'id': 2189, 'image_count': 2063}, {'id': 2190, 'image_count': 1304}, {'id': 2191, 'image_count': 359}, {'id': 2192, 'image_count': 170}, {'id': 2193, 'image_count': 173}, {'id': 2194, 'image_count': 1289}, {'id': 2195, 'image_count': 1820}, {'id': 2196, 'image_count': 201}, {'id': 2197, 'image_count': 93}, {'id': 2198, 'image_count': 33}, {'id': 2199, 'image_count': 1032}, {'id': 2200, 'image_count': 188}, {'id': 2201, 'image_count': 1062}, {'id': 2202, 'image_count': 167}, {'id': 2203, 'image_count': 695}, {'id': 2204, 'image_count': 28}, {'id': 2205, 'image_count': 26}, {'id': 2206, 'image_count': 334}, {'id': 2207, 'image_count': 495}, {'id': 2208, 'image_count': 62}, {'id': 2209, 'image_count': 74}, {'id': 2210, 'image_count': 145}, {'id': 2211, 'image_count': 1231}, {'id': 2212, 'image_count': 179}, {'id': 2213, 'image_count': 125}, {'id': 2214, 'image_count': 922}, {'id': 2215, 'image_count': 224}, {'id': 2216, 'image_count': 227}, {'id': 2217, 'image_count': 590}, {'id': 2218, 'image_count': 68}, {'id': 2219, 'image_count': 62}, {'id': 2220, 'image_count': 2387}, {'id': 2221, 'image_count': 103}, {'id': 2222, 'image_count': 27}, {'id': 2223, 'image_count': 7}, {'id': 2224, 'image_count': 1430}, {'id': 2225, 'image_count': 350}, {'id': 2226, 'image_count': 1216}, {'id': 2227, 'image_count': 1}, {'id': 2228, 'image_count': 8}, {'id': 2229, 'image_count': 183}, {'id': 2230, 'image_count': 152}, {'id': 2231, 'image_count': 177}, {'id': 2232, 'image_count': 980}, {'id': 2233, 'image_count': 50}, {'id': 2234, 'image_count': 433}, {'id': 2235, 'image_count': 972}, {'id': 2236, 'image_count': 89}, {'id': 2237, 'image_count': 1046}, {'id': 2238, 'image_count': 2307}, {'id': 2239, 'image_count': 1}, {'id': 2240, 'image_count': 160}, {'id': 2241, 'image_count': 73}, {'id': 2242, 'image_count': 158}, {'id': 2243, 'image_count': 128}, {'id': 2244, 'image_count': 60}, {'id': 2245, 'image_count': 90}, {'id': 2246, 'image_count': 1564}, {'id': 2247, 'image_count': 296}, {'id': 2248, 'image_count': 2206}, {'id': 2249, 'image_count': 164}, {'id': 2250, 'image_count': 1260}, {'id': 2251, 'image_count': 198}, {'id': 2252, 'image_count': 899}, {'id': 2253, 'image_count': 1207}, {'id': 2254, 'image_count': 1470}, {'id': 2255, 'image_count': 1387}, {'id': 2256, 'image_count': 1590}, {'id': 2257, 'image_count': 384}, {'id': 2258, 'image_count': 375}, {'id': 2259, 'image_count': 35}, {'id': 2260, 'image_count': 1483}, {'id': 2261, 'image_count': 382}, {'id': 2262, 'image_count': 47}, {'id': 2263, 'image_count': 69}, {'id': 2264, 'image_count': 949}, {'id': 2265, 'image_count': 185}, {'id': 2266, 'image_count': 154}, {'id': 2267, 'image_count': 333}, {'id': 2268, 'image_count': 15}, {'id': 2269, 'image_count': 249}, {'id': 2270, 'image_count': 248}, {'id': 2271, 'image_count': 290}, {'id': 2272, 'image_count': 4}, {'id': 2273, 'image_count': 363}, {'id': 2274, 'image_count': 176}, {'id': 2275, 'image_count': 746}, {'id': 2276, 'image_count': 203}, {'id': 2277, 'image_count': 227}, {'id': 2278, 'image_count': 4}, {'id': 2279, 'image_count': 55}, {'id': 2280, 'image_count': 180}, {'id': 2281, 'image_count': 31}, {'id': 2282, 'image_count': 1230}, {'id': 2283, 'image_count': 241}, {'id': 2284, 'image_count': 1392}, {'id': 2285, 'image_count': 2348}, {'id': 2286, 'image_count': 1252}, {'id': 2287, 'image_count': 1196}, {'id': 2288, 'image_count': 219}, {'id': 2289, 'image_count': 1519}, {'id': 2290, 'image_count': 631}, {'id': 2291, 'image_count': 1430}, {'id': 2292, 'image_count': 187}, {'id': 2293, 'image_count': 169}, {'id': 2294, 'image_count': 452}, {'id': 2295, 'image_count': 1755}, {'id': 2296, 'image_count': 74}, {'id': 2297, 'image_count': 1867}, {'id': 2298, 'image_count': 825}, {'id': 2299, 'image_count': 87}, {'id': 2300, 'image_count': 147}, {'id': 2301, 'image_count': 10}, {'id': 2302, 'image_count': 49}, {'id': 2303, 'image_count': 1026}, {'id': 2304, 'image_count': 110}, {'id': 2305, 'image_count': 107}, {'id': 2306, 'image_count': 147}, {'id': 2307, 'image_count': 5}, {'id': 2308, 'image_count': 33}, {'id': 2309, 'image_count': 241}, {'id': 2310, 'image_count': 1706}, {'id': 2311, 'image_count': 511}, {'id': 2312, 'image_count': 507}, {'id': 2313, 'image_count': 855}, {'id': 2314, 'image_count': 392}, {'id': 2315, 'image_count': 1072}, {'id': 2316, 'image_count': 812}, {'id': 2317, 'image_count': 202}, {'id': 2318, 'image_count': 719}, {'id': 2319, 'image_count': 2478}, {'id': 2320, 'image_count': 336}, {'id': 2321, 'image_count': 165}, {'id': 2322, 'image_count': 426}, {'id': 2323, 'image_count': 1253}, {'id': 2324, 'image_count': 2316}, {'id': 2325, 'image_count': 1538}, {'id': 2326, 'image_count': 1140}, {'id': 2327, 'image_count': 35}, {'id': 2328, 'image_count': 461}, {'id': 2329, 'image_count': 1458}, {'id': 2330, 'image_count': 1}, {'id': 2331, 'image_count': 1372}, {'id': 2332, 'image_count': 6}, {'id': 2333, 'image_count': 34}, {'id': 2334, 'image_count': 402}, {'id': 2335, 'image_count': 45}, {'id': 2336, 'image_count': 126}, {'id': 2337, 'image_count': 136}, {'id': 2338, 'image_count': 1520}, {'id': 2339, 'image_count': 105}, {'id': 2340, 'image_count': 244}, {'id': 2341, 'image_count': 1058}, {'id': 2342, 'image_count': 1642}, {'id': 2343, 'image_count': 983}, {'id': 2344, 'image_count': 1471}, {'id': 2345, 'image_count': 773}, {'id': 2346, 'image_count': 772}, {'id': 2347, 'image_count': 114}, {'id': 2348, 'image_count': 1646}, {'id': 2349, 'image_count': 1707}, {'id': 2350, 'image_count': 400}, {'id': 2351, 'image_count': 81}, {'id': 2352, 'image_count': 655}, {'id': 2353, 'image_count': 1004}, {'id': 2354, 'image_count': 1560}, {'id': 2355, 'image_count': 407}, {'id': 2356, 'image_count': 377}, {'id': 2357, 'image_count': 126}, {'id': 2358, 'image_count': 218}, {'id': 2359, 'image_count': 94}, {'id': 2360, 'image_count': 706}, {'id': 2361, 'image_count': 327}, {'id': 2362, 'image_count': 2712}, {'id': 2363, 'image_count': 257}, {'id': 2364, 'image_count': 86}, {'id': 2365, 'image_count': 2105}, {'id': 2366, 'image_count': 482}, {'id': 2367, 'image_count': 318}, {'id': 2368, 'image_count': 1498}, {'id': 2369, 'image_count': 192}, {'id': 2370, 'image_count': 1540}, {'id': 2371, 'image_count': 154}, {'id': 2372, 'image_count': 98}, {'id': 2373, 'image_count': 3}, {'id': 2374, 'image_count': 79}, {'id': 2375, 'image_count': 46}, {'id': 2376, 'image_count': 813}, {'id': 2377, 'image_count': 115}, {'id': 2378, 'image_count': 218}, {'id': 2379, 'image_count': 77}, {'id': 2380, 'image_count': 51}, {'id': 2381, 'image_count': 46}, {'id': 2382, 'image_count': 149}, {'id': 2383, 'image_count': 294}, {'id': 2384, 'image_count': 97}, {'id': 2385, 'image_count': 559}, {'id': 2386, 'image_count': 16}, {'id': 2387, 'image_count': 456}, {'id': 2388, 'image_count': 272}, {'id': 2389, 'image_count': 654}, {'id': 2390, 'image_count': 167}, {'id': 2391, 'image_count': 1660}, {'id': 2392, 'image_count': 435}, {'id': 2393, 'image_count': 50}, {'id': 2394, 'image_count': 1785}, {'id': 2395, 'image_count': 568}, {'id': 2396, 'image_count': 325}, {'id': 2397, 'image_count': 328}, {'id': 2398, 'image_count': 51}, {'id': 2399, 'image_count': 29}, {'id': 2400, 'image_count': 129}, {'id': 2401, 'image_count': 34}, {'id': 2402, 'image_count': 15}, {'id': 2403, 'image_count': 61}, {'id': 2404, 'image_count': 69}, {'id': 2405, 'image_count': 1023}, {'id': 2406, 'image_count': 1019}, {'id': 2407, 'image_count': 46}, {'id': 2408, 'image_count': 46}, {'id': 2409, 'image_count': 190}, {'id': 2410, 'image_count': 118}, {'id': 2411, 'image_count': 278}, {'id': 2412, 'image_count': 362}, {'id': 2413, 'image_count': 132}, {'id': 2414, 'image_count': 388}, {'id': 2415, 'image_count': 154}, {'id': 2416, 'image_count': 77}, {'id': 2417, 'image_count': 765}, {'id': 2418, 'image_count': 680}, {'id': 2419, 'image_count': 832}, {'id': 2420, 'image_count': 418}, {'id': 2421, 'image_count': 195}, {'id': 2422, 'image_count': 1664}, {'id': 2423, 'image_count': 45}, {'id': 2424, 'image_count': 970}, {'id': 2425, 'image_count': 360}, {'id': 2426, 'image_count': 385}, {'id': 2427, 'image_count': 11}, {'id': 2428, 'image_count': 1316}, {'id': 2429, 'image_count': 4572}, {'id': 2430, 'image_count': 92}, {'id': 2431, 'image_count': 78}, {'id': 2432, 'image_count': 999}, {'id': 2433, 'image_count': 1187}, {'id': 2434, 'image_count': 982}, {'id': 2435, 'image_count': 354}, {'id': 2436, 'image_count': 29}, {'id': 2437, 'image_count': 1710}, {'id': 2438, 'image_count': 56}, {'id': 2439, 'image_count': 95}, {'id': 2440, 'image_count': 796}, {'id': 2441, 'image_count': 623}, {'id': 2442, 'image_count': 75}, {'id': 2443, 'image_count': 75}, {'id': 2444, 'image_count': 1517}, {'id': 2445, 'image_count': 60}, {'id': 2446, 'image_count': 16}, {'id': 2447, 'image_count': 1721}, {'id': 2448, 'image_count': 226}, {'id': 2449, 'image_count': 1471}, {'id': 2450, 'image_count': 517}, {'id': 2451, 'image_count': 1616}, {'id': 2452, 'image_count': 384}, {'id': 2453, 'image_count': 278}, {'id': 2454, 'image_count': 769}, {'id': 2455, 'image_count': 186}]

# fmt: on
